#index-user
  .header INDEX USER
  %table#user-list.table-striped
    %tr.heading
      %th= t('.name')
      %th= t('.email')
      - if current_user.admin?
        %th
    - @users.each do |user|
      %tr.user_row{"user-id" => user.id}
        %td.name= user.name
        %td.email= user.email
        - if current_user.admin?
          %td.actions= link_to 'Destroy', user, method: :delete, data: {confirm: "Are you sure?"}
  %p= will_paginate @users, renderer: BootstrapPagination::Rails

